package org.wmq.taskschedule.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.wmq.taskschedule.biz.model.DO.Step;
import org.wmq.taskschedule.common.Result;
import org.wmq.taskschedule.service.StepService;


@RestController
@RequestMapping("/step")
public class StepController {
    @Autowired
    private StepService stepService;

    @GetMapping("/{id}")
    public Result<Step> getById(@PathVariable Long id){
        return Result.success(this.stepService.getById(id));
    }
}
